package com.universalInterface.lims_interface.mapper;

import com.universalInterface.lims_interface.entity.LabChannel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Lx
 * @date 2023/12/22 9:08
 * @description
 **/
@Mapper
public interface TestApiMapper {

	void dropTableForExists(@Param("tableName") String tableName);

	void createTableForTestData(@Param("tableName") String tableName, @Param("list") List<LabChannel> labChannelList);

	void createTableOfAs(@Param("createTable") String createTable, @Param("selectTable") String selectTable);

	void truncateByTable(@Param("tableName") String tableName);

	Integer saveBatchForTestData(@Param("tableName") String tableName, @Param("keys") List<String> keys, @Param("sql") String sql);

	String getTable(@Param("tableName") String tableName);

	List<String> listTable(@Param("tablePrefix") String tablePrefix);
}
